/**
 * @Author: Bobby
 * @Date: 2022-02-15 13:14:17
 * @LastEditTime: 2022-03-01 10:18:01
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\baseComs\form\uiDateCreate.js
 * @CIMC-V2
 */
import { exInput, exSwitch, exSizeSelect, exRadioGroup, exValidateSelect } from '@ve/common/components/extension'

export default {
  VERSION: '20220427',
  type: 'uiDateCreate',
  name: '创建时间',
  icon: 'calendar-2-line',
  svg: 'chuangjianshijian',
  //数据别名
  // dataName: 'uiDate_data',
  //数据集合 表单 列表等等
  data: {
    requestData: {},
  },
  extension: {
    model: exInput('Model', 'ADDTIME'),
    //rule: exSwitch('验证', false),
    extendRule: exValidateSelect('', {}, []),
    label: exInput('标签', '创建时间'),
    width: exInput('宽度', 'auto', '填写数字:单位px,auto:自动宽度'),
    labelWidth: exInput('label宽度', 'auto', '填写数字:单位px,auto:自动宽度'),
    size: exSizeSelect('尺寸', 'mini'),
    placeholder: exInput('提示', '请输入'),
    selection: exRadioGroup('类型', 'datetime', [
      {
        value: 'datetime',
        label: '日期时间',
      },
      {
        value: 'date',
        label: '日期',
      },
      {
        value: 'datetimerange',
        label: '日期时间范围',
      },
      {
        value: 'daterange',
        label: '日期范围',
      },
    ]),
    disabled: exSwitch('禁用', true),
    hidden: exSwitch('隐藏', false),
    defaultDate: exRadioGroup('默认值', '', [
      {
        value: 'now',
        label: '当前',
      },
      {
        value: 'week',
        label: '近一周',
      },
      {
        value: 'month',
        label: '近一月',
      },
      {
        value: 'year',
        label: '近一年',
      },
    ]),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
